﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestList.aspx.cs" Inherits="Guest_TestList" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat="server">
    <title>فهرست آزمایشات</title>
    <link href="../App_Themes/Default/css/B_Yekan.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/slider.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/style.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/grid_12.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/jqtransform.css" rel="stylesheet" type="text/css" />
    <script src="../App_Themes/Default/js/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/jquery.jqtransform.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/FF-cash.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/cufon-replace.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/tms-0.4.x.js" type="text/javascript"></script>
    <script>
        $(document)
    .ready(function () {
        $('.form-1')
        .jqTransform();
        $('.slider')
        ._TMS({
            show: 0,
            pauseOnHover: true,
            prevBu: '.prev',
            nextBu: '.next',
            playBu: false,
            duration: 1000,
            preset: 'fade',
            pagination: true,
            pagNums: false,
            slideshow: 7000,
            numStatus: false,
            banners: false,
            waitBannerAnimation: false,
            progressBar: false
        })
    });
    </script>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../App_Themes/Default/js/html5.js"></script>
<link rel="stylesheet" type="text/css" href="../App_Themes/Default/css/ie.css" />
<![endif]-->
</head>
<body>
    <form id="Form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>     
    <div class="main">
        <!--==============================header=================================-->
        <div class="header">
            <div>
                <h1>
                    <a href="../Default.aspx">
                        <img src="../App_Themes/Default/images/logo.jpg" alt="" /></a></h1>
                <div id="slide">
                    <div class="slider">
                        <ul class="items">
                            <li>
                                <img src="../App_Themes/Default/images/slider-1.jpg" alt="" /></li>
                            <li>
                                <img src="../App_Themes/Default/images/slider-2.jpg" alt="" /></li>
                            <li>
                                <img src="../App_Themes/Default/images/slider-3.jpg" alt="" /></li>
                            <li>
                                <img src="../App_Themes/Default/images/slider-4.jpg" alt="" /></li>
                        </ul>
                    </div>
                    <a href="#" class="prev"></a><a href="#" class="next"></a>
                </div>
                <div class="nav">
                    <ul class="menu">
                    <li><a href="../Default.aspx">صفحه اصلی</a> </li>
                        <li><a id="A7" href="AboutUs.aspx">درباره ما</a> </li>
                        <li><a id="A2" href="~/Login.aspx" runat="server">ورود و جواب دهی</a> </li>
                        <li><a id="A3" href="Help.aspx">راهنمای پذیرش</a> </li>
                        <li><a id="A4" href="Gallery.aspx">گالری</a> </li>
                        <li><a id="A5" href="Paper.aspx">مقالات</a> </li>
                        <li class="current"><a id="A6" href="TestList.aspx">فهرست آزمایشات</a> </li>                        
                    </ul>
                </div>
            </div>
        </div>
        <!--==============================content================================-->
        <div id="content">
            <div class="container_12">
                <div class="grid_10">
                    <h3 class="top-1 p3">
                        فهرست آزمایشات</h3>
                    <asp:PlaceHolder ID="helpDiv" runat="server" />
                    <telerik:RadGrid ID="TestRadGrid" runat="server" CellSpacing="0" DataSourceID="TestEntityDataSource"
                        GridLines="None" AllowFilteringByColumn="True" Height="325px" ShowGroupPanel="false"
                        Width="850px" Skin="Black" AutoGenerateColumns="False" Font-Names="Tahoma"
                        AllowSorting="True">
                        <SortingSettings SortedAscToolTip="افزایشی" SortedDescToolTip="کاهشی" SortToolTip="برای مرتب سازی انتخاب کنید" />
                        <ClientSettings AllowDragToGroup="True">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <MasterTableView DataSourceID="TestEntityDataSource" Dir="RTL" DataKeyNames="CategoryItemID">
                            <NoRecordsTemplate>
                                آزمایشی وجود ندارد
                            </NoRecordsTemplate>
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldAlias="CategoryTitle" FieldName="CategoryTitle" FormatString=""
                                            HeaderText="گروه" />
                                    </GroupByFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CategoryTitle" FilterControlAltText="Filter CategoryTitle column"
                                    HeaderText="عنوان گروه" SortExpression="CategoryTitle" UniqueName="CategoryTitle">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="200px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="CategoryItemTitle" FilterControlAltText="Filter column column"
                                    HeaderText="عنوان آزمایش" UniqueName="CategoryItemTitle">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="310px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                                    HeaderText="توضیحات" SortExpression="Description" UniqueName="Description">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="200px" />
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <AlternatingItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                        <GroupHeaderItemStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <GroupPanel Text="عنصر گروه بندی را به این جا اضافه کنید" Font-Names="Tahoma">
                        </GroupPanel>
                        <HeaderStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <FilterItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                        <ItemStyle Font-Names="Tahoma" />
                        <PagerStyle FirstPageToolTip="صفحه اول" HorizontalAlign="Center" LastPageToolTip="صفحه آخر"
                            NextPagesToolTip="صفحات بعدی" NextPageToolTip="صفحه بعدی" PageSizeLabelText="اندازه صفحه:"
                            PrevPagesToolTip="صفحات قبلی" PrevPageToolTip="صفحه قبلی" VerticalAlign="Middle" />
                        <FilterMenu EnableImageSprites="False" Font-Names="Tahoma">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </HeaderContextMenu>
                    </telerik:RadGrid>
                    <asp:EntityDataSource ID="TestEntityDataSource" runat="server" ConnectionString="name=DefaultEntityConnection"
                        DefaultContainerName="DefaultEntityConnection" CommandText="SELECT T2.CategoryTitle AS CategoryTitle, 
                             T1.CategoryItemTitle AS CategoryItemTitle ,
                             T1.CategoryItemID AS CategoryItemID , 
                             T1.Description AS Description  
                             FROM DefaultEntityConnection.CategoryItems AS T1
                             INNER JOIN DefaultEntityConnection.Categories  AS T2 On T1.CategoryItemID = T2.CategoryID" EnableFlattening="False"
                        AutoGenerateOrderByClause="true">
                    </asp:EntityDataSource>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
    <!--==============================footer=================================-->
    <footer>
        <p>Delta System Anahita © 2020 </p>
    </footer>
    </form>
</body>
</html>
